package com.oa.ylms.apps.business.news;

import java.util.List;

import com.oa.ylms.apps.entity.archives.StaffInfoValue;
import com.oa.ylms.apps.entity.news.NewsInfoValue;

public interface INewsInfoService {
  /**
  * private NewsCategoryValue newsCategory;
 	private StaffInfoValue staffInfo;
	private String title;
	private String content;
	private Date publishTime;
	*/
    public int addNewsInfo(int categoryId,String title,String content,StaffInfoValue staffInfo) throws Exception;
    
    public boolean modifyNewInfo(StaffInfoValue staffInfo,int newsId,int categoryId,String title,String content) throws Exception;
    
    public boolean deleteNewsInfo(String newsIds) throws Exception;
	
	public NewsInfoValue queryNewsById(int newsId) throws Exception;

	public List<NewsInfoValue> queryTopNews(int topNum) throws Exception;

	public List<NewsInfoValue> queryNewsWithPage(Integer categoryId,String publishTime,String title, String staffName, int rows, int pageNo)throws Exception;
	
	public int countTPages(Integer categoryId,String publishTime,String title, String staffName,int rows)throws Exception;
	
	public int getTotalNumber () throws Exception;

	
}
